apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  {{- include "helm_lib_module_labels" (list . (dict "app.kubernetes.io/component" "redis" "app.kubernetes.io/name" "argocd-redis" "app.kubernetes.io/part-of" "argocd" "app" "argocd-redis")) | nindent 2 }}
  name: argocd:redis
  namespace: d8-{{ .Chart.Name }}
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: argocd:redis
subjects:
  - kind: ServiceAccount
    name: argocd-redis
---
apiVersion: v1
kind: ServiceAccount
metadata:
  {{- include "helm_lib_module_labels" (list . (dict "app.kubernetes.io/component" "redis" "app.kubernetes.io/name" "argocd-redis" "app.kubernetes.io/part-of" "argocd" "app" "argocd-redis")) | nindent 2 }}
  name: argocd-redis
  namespace: d8-{{ .Chart.Name }}
